package GameEngine.Drawables.GameObjects;

import GameEngine.Drawables.Drawable;
import GameEngine.helper.PAppletBridge;


public class DreierBlock extends Drawable {

	public DreierBlock(int px, int py) {
		setPosX(px);
		setPosY(py);
	}
	
	public void drawAt(int x, int y) {
		PAppletBridge.pushMatrix();
		PAppletBridge.translate (-x,-y);
		draw();
		PAppletBridge.popMatrix();
	}

	public void draw() {
		PAppletBridge.pushMatrix();
		PAppletBridge.translate(getPosx(), getPosy());
		PAppletBridge.fill(0xAB345600);
		PAppletBridge.rect(0, 0, 40, 40, 7);
		PAppletBridge.rect(42 * 1, 0, 40, 40, 7);
		PAppletBridge.rect(42 * 2, 0, 40, 40, 7);
		PAppletBridge.popMatrix();
	}

}
